<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!--#include file="../connections/connect.asp" -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<%
				var u = String(Request.Form("txtName"));
				var pass=String(Request.Form("txtPass"));
				var sql= "select count(CustomerID) AS kq from Customer WHERE CustomerID = '"+ u +"' and Password = '"+ pass +"'";				
				var kt=conn.Execute(sql);
				if( parseInt( kt.Fields("kq")) != 0)
				{
					Session("user") = "";					
					Session("user")= ""+ u;
					Session.Timeout=10					
					Response.Redirect("../index.asp");
					conn.Close()							
		}
		else
		{
			conn.Close()
			Response.Write("Thông tin tài khoản không hợp lệ !");
			%>
      <br /><br />
    <a href="../login.asp">Ðang nhập lại</a><br /><br />      
      
      <%
		}
 %>
</body>
</html>
